package com.day17.ex03;

import java.io.FileOutputStream;
import java.io.IOException;

public class FileOutputStreamDemo03 {
    public static void main(String[] args)throws IOException {
        FileOutputStream fos=new FileOutputStream("D:\\java\\javaSE\\javaSE\\src\\com\\day17\\ex03\\test.txt");
        for (int i = 0; i < 10; i++) {
            fos.write("hello".getBytes());
            fos.write("\r\n".getBytes());
            fos.close();
        }
    }
}
